﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Collections;
using System.Windows.Forms;

namespace YehbaLogin
{
    public class FormsCollection : CollectionBase
    {
        /// <summary>
        /// call this method to add form to the collection
        /// </summary>
        /// <param name="FormObject">Form object instance</param>
        /// <returns>Form</returns>
        public Form Add(Form FormObject)
        {
            base.List.Add(FormObject);
            return (FormObject);
        }

        /// <summary>
        /// call this method to remove form to the collection
        /// </summary>
        /// <param name="FormObject">Form object instance</param>
        public void Remove(Form FormObject)
        {
            base.List.Remove(FormObject);
        }
    }
}
